/*
 * 文件名：ShoppingCart.java
 * 版权：Copyright by hlst
 * 描述：
 * 修改人：liuziyu
 * 修改时间：2016年7月14日
 * 跟踪单号：
 * 修改单号：
 * 修改内容：
 */

package com.zcsy.manage.model.mall;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Title: ShoppingCart.java
 * @Package： com.zcsy.manage.model.mall 
 * @Description: 购物车实体类
 * @author liuziyu liuziyuwri@foxmail.com
 * @Copyright: 2016 武汉恒数利通软件有限公司 All rights reserved.
 * @date 2016年7月14日
 * @version 1.0
 * @see JDK1.7.0_75
 * @since
 */
/**
 * @Title: ShoppingCart.java
 * @Package： com.zcsy.manage.model.mall 
 * @Description: 〈一句话功能简述〉
 *  〈功能详细描述〉
 *
 * @author caiyinli 13277030520@163.com
 * @Copyright: 2015 武汉中财数元信息技术有限公司 All rights reserved.
 * @date 2016年7月18日
 * @version 1.0
 * @see JDK1.7.0_75
 * @since
 */
/**
 * @Title: ShoppingCart.java
 * @Package： com.zcsy.manage.model.mall 
 * @Description: 〈一句话功能简述〉
 *  〈功能详细描述〉
 *
 * @author caiyinli 13277030520@163.com
 * @Copyright: 2015 武汉中财数元信息技术有限公司 All rights reserved.
 * @date 2016年7月19日
 * @version 1.0
 * @see JDK1.7.0_75
 * @since
 */
public class ShoppingCart {
	
	/** 主键id */
	private String id;
	
	/** 商品id */
	private String goodsId;
	
	/** 店铺id */
	private String shopId;
	
	/** 规格id */
	private String specificationId;
	
	/** 价格 */
	private BigDecimal price;
	
	/** 数量 */
	private Integer amount;
	
	/** 类型 */
	private Integer type;
	
	/** 小区id */
	private String cellId;
	
	/** 用户账号 */
	private String userAccount;
	
	/** 发送时间 */
	private Date sendTime;
	
	/** 备注 */
	private String memo;
	
    /**
     * 规格描述<br>
     */
    private String spectifications;
    
    /**
     * 商品logo<br>
     */
    private String goodsLogo;
    
    /**
     * 商品状态<br>
     */
    private Integer goodsState;
    
    /**
     * 商品名称<br>
     */
    private String goodsName;
    
    /**
     * 商品是否选中<br>
     */
    private boolean checks;
    
    /**
     * 商品是否可编辑<br>
     */
    private boolean disable;
    
    /**
     * 分类ID<br>
     */
    private String categoryId;
    
    /**
     * 商品logo图链接，客户端使用<br>
     */
    private String goodsLogoUrl; 
    
	/**
	 * 购物车中的商品列表<br>
	 */
	List<GoodsInfo> goodsInfoList;
	
	/**
	 * 商品或规格库存<br>
	 */
	private int stock;
	
	/**
	 * 是否需要配送：1是、0否，<br>
	 */
	private int isNeedDistribute;
	
	/**
	 * 是否需要确认：1是、0否，<br>
	 */
	private int isNeedConfirm;
	
	/**
	 * 商铺名称
	 */
	private String shopName;
	
	private BigDecimal subTotal;
	
	private String spectificationId;
	
	private BigDecimal marketPrice;
	
	private int goodsType;
	
	private Date killStartTime;
	
	private Date killEndTime;
	
	private int integralNum;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}

	public String getSpecificationId() {
		return specificationId;
	}

	public void setSpecificationId(String specificationId) {
		this.specificationId = specificationId;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getCellId() {
		return cellId;
	}

	public void setCellId(String cellId) {
		this.cellId = cellId;
	}

	public String getUserAccount() {
		return userAccount;
	}

	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getSpectifications() {
		return spectifications;
	}

	public void setSpectifications(String spectifications) {
		this.spectifications = spectifications;
	}

	public String getGoodsLogo() {
		return goodsLogo;
	}

	public void setGoodsLogo(String goodsLogo) {
		this.goodsLogo = goodsLogo;
	}

	public Integer getGoodsState() {
		return goodsState;
	}

	public void setGoodsState(Integer goodsState) {
		this.goodsState = goodsState;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public boolean isChecks() {
		return checks;
	}

	public void setChecks(boolean checks) {
		this.checks = checks;
	}

	public boolean isDisable() {
		return disable;
	}

	public void setDisable(boolean disable) {
		this.disable = disable;
	}

	public String getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(String categoryId) {
		this.categoryId = categoryId;
	}

	public String getGoodsLogoUrl() {
		return goodsLogoUrl;
	}

	public void setGoodsLogoUrl(String goodsLogoUrl) {
		this.goodsLogoUrl = goodsLogoUrl;
	}

	public String getShopId() {
		return shopId;
	}

	public void setShopId(String shopId) {
		this.shopId = shopId;
	}

	public int getStock() {
		return stock;
	}

	public void setStock(int stock) {
		this.stock = stock;
	}

	public int getIsNeedDistribute() {
		return isNeedDistribute;
	}

	public void setIsNeedDistribute(int isNeedDistribute) {
		this.isNeedDistribute = isNeedDistribute;
	}

	public int getIsNeedConfirm() {
		return isNeedConfirm;
	}

	public void setIsNeedConfirm(int isNeedConfirm) {
		this.isNeedConfirm = isNeedConfirm;
	}

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public List<GoodsInfo> getGoodsInfoList() {
        return goodsInfoList;
    }

    public void setGoodsInfoList(List<GoodsInfo> goodsInfoList) {
        this.goodsInfoList = goodsInfoList;
    }

    public BigDecimal getSubTotal() {
        if(null == this.price) {
            return BigDecimal.ZERO;
        }
        return this.price.multiply(new BigDecimal(this.amount));
    }

    public void setSubTotal(BigDecimal subTotal) {
        this.subTotal = subTotal;
    }

	public String getSpectificationId() {
		return spectificationId;
	}

	public void setSpectificationId(String spectificationId) {
		this.spectificationId = spectificationId;
	}

	public BigDecimal getMarketPrice() {
		return marketPrice;
	}

	public void setMarketPrice(BigDecimal marketPrice) {
		this.marketPrice = marketPrice;
	}

	public int getGoodsType() {
		return goodsType;
	}

	public void setGoodsType(int goodsType) {
		this.goodsType = goodsType;
	}

	public Date getKillStartTime() {
		return killStartTime;
	}

	public void setKillStartTime(Date killStartTime) {
		this.killStartTime = killStartTime;
	}

	public Date getKillEndTime() {
		return killEndTime;
	}

	public void setKillEndTime(Date killEndTime) {
		this.killEndTime = killEndTime;
	}

	public int getIntegralNum() {
		return integralNum;
	}

	public void setIntegralNum(int integralNum) {
		this.integralNum = integralNum;
	}
	
 }
